package com.ymt.bpm.service.engine.taskcenter;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;

/**
 * Created by Johnny on 2017/4/12.
 */
public interface PortalProcessService {

    JSONArray getFrequentlyBpd(String tenantId, String loginName, int limits);

    JSONArray getFavouriteBpd(String tenantId, String loginName, int limits);

    JSONArray getTemplates(String tenantId, String loginName, int limits);

    JSONObject addFav(String tenantId, String loginName, String bpdId, String bpdName, int limits);

    JSONObject delFav(String tenantId, String loginName, String bpdId);

    JSONArray getBpdAuthTree(String tenantId, String loginName, String authType);

    JSONObject getBpdAuthList(String tenantId, String loginName, String authType, String search, int limit);

    JSONObject getBpdSvg(String tenantId, String bpdId, String versionid);

    JSONObject hasten(String tenantId, String loginName, String displayName, JSONObject params);

    JSONObject recall(String tenantId, String loginName, String displayName, String piId);

}
